import { createRouter, createWebHistory } from 'vue-router'
import INDEX from '@/components/index/index.vue'
import GWC from '@/components/gwc/index.vue'
import XQ from '@/components/product/index.vue'
import ALLDD from '@/components/order/index.vue'
import MY from '@/components/user/index.vue'
import Login from '@/components/user/login.vue'
import Register from '@/components/user/register.vue'
import Jiesuan from '@/components/order/jiesuan.vue'
import Myziliao from '@/components/user/myziliao.vue'

const routes = [
  { path: '/', component: INDEX, name: 'INDEX' },
//  { path: '/index', component: INDEX, name: 'INDEX' },
  { path: '/gwc', component: GWC, name: 'GWC' },
  { path: '/allDd', component: ALLDD, name: 'ALLDD' },
  { path: '/my', component: MY, name: 'MY' },
  { path: '/xq/:id', component: XQ, name: 'XQ' },
  { path: '/login', component: Login, name: 'Login' },
  { path: '/register', component: Register, name: 'register' },
  { path: '/jiesuan', component: Jiesuan, name: 'jiesuan' },
  { path: '/myziliao', component: Myziliao, name: 'myziliao' },
]
	
const router = createRouter({
  history: createWebHistory(),
  routes,
})

export default router